<?php

namespace App\Repositories;

use App\Admin\Subject;

class SubjectRepositories
{
    public function save($request)
    {
        $data = $request->only(['name', 'parent_id']);
        $subject = Subject::create($data);
        return $subject;
    }


}
